package cn.yql8.service.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import cn.yql8.bean.Group;
import cn.yql8.dao.other.GroupDao;
import cn.yql8.service.GroupService;

@Service("groupService")
public class GroupServiceImpl implements GroupService{
	private Log logger = LogFactory.getLog(GroupServiceImpl.class);
	
	//@Resource(name="groupDao")
	private GroupDao groupDao;
	public Group getById(int id) throws Exception {
		return this.groupDao.getById(id);
	}

	public void add(Group group) {
		this.groupDao.add(group);
	}

}
